﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

///<summary>
///
///</summary>
public class IntroView : MonoBehaviour
{
    GameObject LoadingBg;
    // Start is called before the first frame update
    public void Init()
    {
        LoadingBg = GameObject.Find("Canvas/View/introBg");
    }
    public void PlayLoadingEndAnimation()
    {
        LoadingBg.GetComponent<Animation>().Play();
        StartCoroutine(End());
    }    
    IEnumerator End()
    {
        yield return new WaitForSeconds(1);
        AppFacde.Instance.SendNotification(GameEvents.LOADING_END);
    }
}
